package com.example.demo.service;

import com.example.demo.entity.Menu;
import com.example.demo.repository.MenuRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class MenuService {

    @Autowired
    MenuRepository menuRepository;
    public List<Menu> getMenu(String menuType){
       List<Menu> list = menuRepository.findByMenuType(menuType);
        return  list;
    }
}
